package com.woniu.idearbac.Service.impl;


import com.woniu.idearbac.Service.UserService;
import com.woniu.idearbac.dto.UserDto;
import com.woniu.idearbac.entity.SysUser;
import com.woniu.idearbac.mapper.SysUserMapper;
import com.woniu.idearbac.vo.UserVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author King
 * @date 2022/11/24
 * @project boot_rbac
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private com.woniu.idearbac.mapper.SysUserMapper SysUserMapper;

    @Override
    public SysUser selByTel(String tel) {
        return SysUserMapper.selByTel(tel);
    }

    @Override
    public List<UserVo> selAll(UserDto UserDto) {
        return SysUserMapper.selAll(UserDto);
    }

    @Override
    public SysUser loginDo(UserDto UserDto) {
        return SysUserMapper.loginDo(UserDto);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return SysUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(SysUser record) {
        return SysUserMapper.insertSelective(record);
    }

    @Override
    public SysUser selectByPrimaryKey(Long id) {
        return SysUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysUser record) {
        return SysUserMapper.updateByPrimaryKeySelective(record);
    }


}
